package com.tuyrt.hi.hiitem.hiitem

import android.view.View
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.tuyrt.hi.hiitem.R

/**
 * author: Administrator on 2021/6/1.
 * desc:
 */
class ActivityDataItem(data: ItemData?):HiDataItem<ItemData,ActivityDataItem.ActivityHolder>(data) {

    override fun getItemLayoutRes(): Int {
        return R.layout.layout_list_item_activity
    }

    override fun onBindData(holder: ActivityHolder, position: Int) {
        val imageView = holder.itemView.findViewById<ImageView>(R.id.item_image)
        imageView.setImageResource(R.drawable.item_activity)
    }

    class ActivityHolder(itemView:View):RecyclerView.ViewHolder(itemView) {
    }
}